class ModifyTableAdherents < ActiveRecord::Migration
  def self.up
    change_column :adherents, :telDomicilePersonneAPrevenir, :integer, :limit => 10
    change_column :adherents, :telBureauPersonneAPrevenir, :integer, :limit => 10
    add_column :adherents, :telPortablePersonneAPrevenir, :integer, :limit => 10
    change_column :adherents, :cp, :integer, :limit => 5
    change_column :adherents, :telDomicile, :integer, :limit => 10
    change_column :adherents, :telPortable, :integer, :limit => 10
  end

  def self.down
    remove_column :adherents, :telPortablePersonneAPrevenir
  end
end
